import request from '@/utils/request';

export function getInfo() {
    return request({
        url: '/getInfo',
        method: 'get',

    });
}

export function login(data) {
    return request({
        url: '/api/auth/login',
        method: 'post',
        data,
    });
}

export function logout() {
    return request({
        url: '/logout',
        method: 'post',

    });
}

export function getUserInfo() {
    return request({
        url: '/getInfo',
        method: 'get',
    });
}

export function changePassword(data) {
    return request({
        url: '/changePassword',
        method: 'post',
        data
    });
}



export function resetPassword(data) {
    return request({
        url: '/resetPassword',
        method: 'post',
        data
    });
}